package com.nondo.dean.community.controller.wap.app;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.nondo.dean.common.tool.AliyunOssTool;
import com.nondo.dean.community.service.ArticleService;

@Controller("apiWapArticle")
@RequestMapping("/wap/app/article")
public class ArticleController {

    @Value("${baseUrl}")
    private String baseUrl;

    @Autowired
    ArticleService articleService;

    @Autowired
    AliyunOssTool aliyunOssTool;

    /**
     * 获取文章详情
     *
     * @param request
     * @param response
     * @return
     */
    @RequestMapping("/info")
    public ModelAndView getArticleParticulars (HttpServletRequest request, HttpServletResponse response) {
        ModelAndView mv = new ModelAndView("wap/app/article");
        mv.addObject("baseUrl", baseUrl);
        return mv;
    }


}